﻿using DAL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class MerchantManagementBLL
    {
        /// <summary>
        /// 首页按日期获取充值-消费汇总
        /// </summary>
        /// <param name="openid">openid</param>
        /// <param name="strattime">开始日期</param>
        /// <param name="endtime">结束日期</param>
        /// <returns></returns>
        public static DataSet MerHomeData(string openid, string strattime, string endtime) 
        {
            return MerchantManagementDAL.MerHomeData(openid,strattime,endtime);
        }
        /// <summary>
        /// 获取食堂
        /// </summary>
        /// <param name="openid"></param>
        /// <returns></returns>
        public static DataTable InfoCanteen(string openid) 
        {
            return MerchantManagementDAL.InfoCanteen(openid);
        }

        public static DataTable InfoDangkou(string openid)
        {
            return MerchantManagementDAL.InfoDangkou(openid);
        }
        /// <summary>
        /// 获取食堂汇总
        /// </summary>
        /// <param name="openid"></param>
        /// <param name="strattime"></param>
        /// <param name="endtime"></param>
        /// <returns></returns>

        public static DataSet InfoCandata(string openid,string cantname, string strattime, string endtime) 
        {
            return MerchantManagementDAL.InfoCandata(openid, cantname, strattime,endtime);
        }

        public static DataSet InfoDangkouData(string openid, string cantname, string strattime, string endtime)
        {
            return MerchantManagementDAL.InfoDangkouData(openid, cantname, strattime, endtime);
        }
    }
}
